import { Entity, Column } from 'typeorm';
import { Base } from '../base.entity';

@Entity()
export class Business extends Base {

    //商家名称
    @Column({ length: 255, comment: '商家名称' })
    business_name: string;

    //联系方式
    @Column({ length: 50, nullable: true, comment: '联系方式' })
    telphone: string;

    //客户ID
    @Column({ length: 255, comment: '客户ID', nullable: true })
    customer_id: string;

    //所在地址
    @Column({ length: 255, comment: '所在地址', nullable: true })
    business_address: string;

    //描述
    @Column({ length: 300, comment: '描述', nullable: true })
    business_describe: string;

    //创建人user_id
    @Column({ comment: '创建人user_id' })
    user_id: number;
 
}

